Skip to content

fix(cli): ignore msbuild binlog files #14621

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
May 16, 2025

Conversation

frankcalise
Copy link
Contributor

@frankcalise frankcalise commented Apr 25, 2025

Description

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Why

What is the motivation for this change? Add a few sentences describing the context and overall goals of the pull request's commits.

Resolves #14160

What

  • Updates the .gitignore templates to target MS Build related log files (*.binlog, *.wrn, *.err)
  • If a build log directory is not specified, use the windows directory (determined from the location of the solution file)

Screenshots

TODO

Testing

TODO

Changelog

Should this change be included in the release notes: No

Microsoft Reviewers: Open in CodeFlow

@frankcalise frankcalise changed the title Frankcalise/fix ignore binlog fix(cli): ignore msbuild binlog files Apr 25, 2025
@TatianaKapos
Copy link
Contributor

/azp run PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@frankcalise frankcalise marked this pull request as ready for review April 26, 2025 01:39
@frankcalise frankcalise requested review from a team as code owners April 26, 2025 01:39
@TatianaKapos
Copy link
Contributor

/azp run PR

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anupriya13 anupriya13 requested review from Copilot and removed request for a team May 12, 2025 12:21
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request fixes an issue by updating the CLI logic to properly ignore MSBuild log files and adjusts the default log directory for build logs. Key changes include:

  • Updating the gitignore templates in both cpp-lib and cpp-app to ignore MSBuild binlog, error, and warning files.
  • Modifying the msbuildtools.ts file to change the default log directory from the OS temporary directory to the directory of the solution file and simplifying the binlog flag.
  • Updating change files with prerelease metadata for both the library and CLI.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

File Description
vnext/templates/cpp-lib/windows/_gitignore Added rules to ignore MSBuild log files; note a spelling error in a comment.
vnext/templates/cpp-app/windows/_gitignore Added rules to ignore MSBuild log files; note a spelling error in a comment.
packages/@react-native-windows/cli/src/utils/msbuildtools.ts Updated default log directory and simplified binlog option handling.
change/*.json Updated prerelease metadata entries.

@anupriya13
Copy link
Contributor

/azp run

Copy link

Azure Pipelines successfully started running 2 pipeline(s).

@anupriya13 anupriya13 requested review from a team and jonthysell May 12, 2025 12:29
@acoates-ms acoates-ms merged commit 5005dc0 into microsoft:main May 16, 2025
76 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The new app / lib templates should help prevent checking in msbuild binlog files
5 participants